package org.example.minebackend.service;

import org.example.minebackend.pojo.Comment;
import org.example.minebackend.pojo.Invitation;
import org.example.minebackend.pojo.PageBean;
import org.example.minebackend.pojo.dto.CommentDTO;
import org.example.minebackend.pojo.dto.InvitationDetailDTO;
import org.example.minebackend.pojo.dto.InvitationPageDTO;

import java.util.List;

public interface CommunityService {
    PageBean getInvitations(InvitationPageDTO invitationPage);
    int uploadInvitation(Invitation invitation);
    InvitationDetailDTO getInvitationById(Integer id);

    List<CommentDTO> getAllCommentByInvitationId(Integer id);

    int uploadComment(Comment comment);

    int addInvitationOfCollection(Integer userId, Integer invitationId);

    int judgeCollection(Integer userId, Integer invitationId);

    int deleteCollection(Integer userId, Integer invitationId);
}
